<h1>New topic</h1>

<% form_for @topic, :url=>{:controller =>"topics",:action=>"create"}do |f| %>
  <%= f.error_messages %>
<!--
  <p>
  <%%= f.label :user_id %><br />
  <%%= f.text_field :user_id %>
  </p>
-->
  <p>
  <%= f.label :title %><br />
  <%= f.text_field :title %>
  </p>

  <p>
  <%= f.label :topic_content %><br />
  <%= f.text_field :topic_content %>
  </p>

<!--
  <p>
  <%%= f.label :updated_at %><br />
  <%%= f.text_field :updated_at %>
  </p>
-->
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back',:action=>"index"%>